<template>
<div class="loading">
  <div>
    <div class="ani-loading-wrap">
      <div class="ani-loading">
        <svg height="100%" viewBox="0 0 32 32" width="100%">
          <circle cx="16" cy="16" fill="none" r="14" stroke-width="4" style="stroke: #E76202; opacity: 0.2;"></circle>
          <circle cx="16" cy="16" fill="none" r="14" stroke-width="4" style="stroke:  #E76202; stroke-dasharray: 80; stroke-dashoffset: 60;"></circle>
        </svg>
      </div>
    </div>
  </div>
</div>
</template>

<script>
export default {
  name: "t-loading"
}
</script>

<style scoped lang="less">
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  .ani-loading-wrap {
   display: flex;
    align-items: center;
    justify-content: center;
    .ani-loading {
      width: 26px;
      height: 26px;
    }
  }
  .text {
    text-align: center;
    color: @t-text-color;
    font-size: 14px;
  }
}
.ani-loading{
  animation: ani-demo-spin 1s linear infinite;
}
@keyframes ani-demo-spin {
  from { transform: rotate(0deg);}
  50%  { transform: rotate(180deg);}
  to   { transform: rotate(360deg);}
}
</style>